Now that the use_es field is an int with a possible negative value, we
cannot use it its truth value directly; we need to check if it's a
positive value, instead.
/* Enforce a minimum context version number of 3.2 */
version = (major * 100) + minor;
- if (priv->use_es || (_gdk_gl_flags & GDK_GL_GLES) != 0)
+ if (priv->use_es > 0 || (_gdk_gl_flags & GDK_GL_GLES) != 0)
min_ver = 200;
else
min_ver = 302;
g_return_if_fail (GDK_IS_GL_CONTEXT (context));
- if (priv->use_es || (_gdk_gl_flags & GDK_GL_GLES) != 0)
+ if (priv->use_es > 0 || (_gdk_gl_flags & GDK_GL_GLES) != 0)
{
default_major = 2;
default_minor = 0;